package DataBean;

public class Network {

    private String homepage;
    private String communication;
    private String mailbox;//Backup Mailbox

    public Network() {
    }

    public Network(String homepage, String communication, String mailbox) {
        this.homepage = homepage;
        this.communication = communication;
        this.mailbox = mailbox;
    }

    @Override
    public String toString() {
        return "Network{" + "homepage=" + homepage + ", communication=" + communication + ", mailbox=" + mailbox + '}';
    }

    /**
     * @return the homepage
     */
    public String getHomepage() {
        return homepage;
    }

    /**
     * @param homepage the homepage to set
     */
    public void setHomepage(String homepage) {
        this.homepage = homepage;
    }

    /**
     * @return the communication
     */
    public String getCommunication() {
        return communication;
    }

    /**
     * @param communication the communication to set
     */
    public void setCommunication(String communication) {
        //this.communication = communication;
        if (this.communication == null) {
            this.communication = communication;
        } else {
            this.communication = this.communication + "\nX-" + communication;
        }
    }

    /**
     * @return the mailbox
     */
    public String getMailbox() {
        return mailbox;
    }

    /**
     * @param mailbox the mailbox to set
     */
    public void setMailbox(String mailbox) {
        this.mailbox = mailbox;
    }

}
